package com.ciquan.server.util.web;



import com.ciquan.server.bean.Active;
import com.ciquan.server.bean.Menu;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by kakalee on 15/1/24.
 */
public class MenuUtils {

    public final static List<Menu> ADMIN_MENUS;

    public final static Map<String, Active> ADMIN_ACTIVE;


    static {
        ADMIN_MENUS = new ArrayList<Menu>();
        ADMIN_MENUS.add(new Menu("消息列表", "message/works"));
        ADMIN_MENUS.add(new Menu("审核列表", "apply/list"));
        ADMIN_MENUS.add(new Menu("系统通知", "sysMessage/list/page1"));
        ADMIN_MENUS.add(new Menu("焦点广告", "advertisement/list/"));
        ADMIN_MENUS.add(new Menu("藏品推荐", "worksRecommend/list/"));
        ADMIN_MENUS.add(new Menu("艺术家推荐", "artistRecommend/list/"));
        ADMIN_MENUS.add(new Menu("商家推荐", "userRecommend/list/"));
        ADMIN_MENUS.add(new Menu("藏品关键词", "keyWords/list/"));
        ADMIN_MENUS.add(new Menu("版本", "version/list/"));

        ADMIN_ACTIVE  = new HashMap<String, Active>();
        int i =0;
        ADMIN_ACTIVE.put("message", new Active(i++, "消息列表"));
        ADMIN_ACTIVE.put("apply", new Active(i++, "审核列表"));
        ADMIN_ACTIVE.put("sysMessage", new Active(i++, "系统通知"));
        ADMIN_ACTIVE.put("advertisement", new Active(i++, "焦点广告"));
        ADMIN_ACTIVE.put("worksRecommend", new Active(i++, "藏品推荐"));
        ADMIN_ACTIVE.put("artistRecommend", new Active(i++, "艺术家推荐"));
        ADMIN_ACTIVE.put("userRecommend", new Active(i++, "商家推荐"));
        ADMIN_ACTIVE.put("keyWords", new Active(i++, "藏品关键词"));
        ADMIN_ACTIVE.put("version", new Active(i++, "版本"));
    }
}
